package com.wy2.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import com.wy2.mapper.ClockMapper;



@Service
@EnableScheduling
public class dingshiqi {
		@Autowired 
		private ClockMapper clockMapper;
		@Scheduled(cron = "0 0 23 * * ?")
		public void qingshiqi() {
			Integer updateClock = clockMapper.updateClock();
			System.out.println(updateClock);
		}
}
